package com.business.service;

import com.business.bean.Role;
import com.business.bean.User;
import com.baomidou.mybatisplus.service.IService;
import com.business.bean.layuiBean.ResultPage;
import com.business.bean.layuiBean.VoPage;
import org.apache.shiro.web.servlet.ShiroHttpSession;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张子艺
 * @since 2019-01-08
 */
public interface UserService extends IService<User> {
    User  login( String userName);
    Map<String, Object> loginGo(String userName, String passWord);

    Map<String, Object> delUser(Long userId, String userName, ShiroHttpSession shiroHttpSession);

    Map<String, Object> insertUser(User user,Long roleId);

    //查询 分页用户
    ResultPage<User> findUserByPage(VoPage voPage);

}
